package edu.cuit.avatar.p2;

import edu.cuit.avatar.p1.C1;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/10 10:03
 */
public class C5 extends C1 {
    public void test() {
        C1 o = new C1();
        o.x = 100;
        //o.y = 100; //不能访问protected修饰的数据域
        //o.z = 100; //不在同一包中，不能访问
        //o.u = 100;
        //访问子类继承而来的受保护的m()方法
        y = 100;
        m();
    }
}
